VMX: use #defines instead of magic constants
authorRazvan Cojocaru <rcojocaru@bitdefender.com>
Tue, 26 Aug 2014 15:54:34 +0000 (17:54 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 26 Aug 2014 15:54:34 +0000 (17:54 +0200)
commit9eb95c3c82221969539b9958ae6de6c3bd58ce51
treea6492bb7853fb2e2a7b14cb7d0809a790eeb457a
parent7645640d6ff1791733c43f71590c6e2976cfa549
VMX: use #defines instead of magic constants

Now using a combination of INTR_INFO_VECTOR_MASK,
INTR_INFO_INTR_TYPE_MASK and MASK_EXTR() to replace the old
"(ev >> 8) & 7, ev & 0xff" magic constant code in vmx.c.

Changes since V1:
 - Fixed indentation.

Changes since V2:
 - Fixed vmx_idtv_reinject() also.

Sugested-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
xen/arch/x86/hvm/vmx/vmx.c